package es.upm.emse.softdesign.controltower.model.aircraft.imp;
import es.upm.emse.softdesign.controltower.model.aircraft.Aircraft;
import es.upm.emse.softdesign.controltower.model.library.PlaneType;

/**
 * @author hades
 * @version 1.0
 * @created 20-mar-2013 0:49:56
 */
public class Plane extends Aircraft {

	private String model;
	private PlaneType type;
	/**
	 * Constructor
	 * @param id {@link String}
	 * @param fuelRemaning int 
	 * @param subtype {@link PlaneType}
	 */
	public Plane(String id, int fuelRemaning, PlaneType subtype){
		super(id,fuelRemaning);
		this.type = subtype;
	}

	public String getModel() {
		return model;
	}

	public void setModel(String model) {
		this.model = model;
	}

	public PlaneType getType() {
		return type;
	}

	public void setType(PlaneType type) {
		this.type = type;
	}


	@Override
	public Enum<?> getSubtype() {
		
		return this.type;
	}



}